﻿#region Using

using Common.Base;

using GameCommon.Args;
using GameCommon.ComponentInterfaces;
using GameCommon.Manager;

using Microsoft.Xna.Framework;

using GameComponent = GameCommon.Components.GameComponent;

#endregion

namespace GameCommon.HitBoxes
{
    public abstract class HitBox : GameComponent, IHitBox
    {
        protected HitBox(string id)
            : base(id)
        {
        }

        public bool IsMouseOver { get; set; }

        protected Rectangle Rectangle
        {
            get
            {
                return this.Dimension.Rectangle;
            }
        }

        public override void Dispose()
        {
        }

        public virtual bool IsPointInHitbox(Position point)
        {
            return false;
        }
    }
}